{include file="../app/index/view/public.header.html" /}
<form class="layui-form layui-form-pane" style="padding: 0px">
    <div class="layui-form-item">
        <label class="layui-form-label" for="countryZh">国家</label>
        <div class="layui-input-block">
            <input class="layui-input" name="countryZh" id="countryZh" type="text" placeholder="请输入国家" autocomplete="off" lay-verify="required"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" for="countryEn">Country</label>
        <div class="layui-input-block">
            <input class="layui-input" name="countryEn" id="countryEn" type="text" placeholder="Input Province" autocomplete="off" lay-verify="required"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" for="provinceZh">省份</label>
        <div class="layui-input-block">
            <input class="layui-input" name="provinceZh" id="provinceZh" type="text" placeholder="请输入省份" autocomplete="off" lay-verify="required"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" for="provinceEn">Province</label>
        <div class="layui-input-block">
            <input class="layui-input" name="provinceEn" id="provinceEn" type="text" placeholder="Input Province" autocomplete="off" lay-verify="required"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" for="leaderZh">地区</label>
        <div class="layui-input-block">
            <input class="layui-input" name="leaderZh" id="leaderZh" type="text" placeholder="请输入地区" autocomplete="off" lay-verify="required"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" for="leaderEn">Leader</label>
        <div class="layui-input-block">
            <input class="layui-input" name="leaderEn" id="leaderEn" type="text" placeholder="Input Leader" autocomplete="off" lay-verify="required"/>
        </div>
    </div>
    <div class="layui-form-item">
    <label class="layui-form-label" for="cityZh">城市</label>
    <div class="layui-input-block">
        <input class="layui-input" name="cityZh" id="cityZh" type="text" placeholder="请输入城市" autocomplete="off" lay-verify="required"/>
    </div>
    </div>
    <div class="layui-form-item">
    <label class="layui-form-label" for="cityEn">City</label>
    <div class="layui-input-block">
        <input class="layui-input" name="cityEn" id="cityEn" type="text" placeholder="Input City" autocomplete="off" lay-verify="required"/>
    </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" for="lat">纬度</label>
        <div class="layui-input-block">
            <input class="layui-input" name="lat" id="lat" type="text" placeholder="请输入纬度" autocomplete="off" lay-verify="required"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" for="lon">经度</label>
        <div class="layui-input-block">
            <input class="layui-input" name="lon" id="lon" type="text" placeholder="请输入经度" autocomplete="off" lay-verify="required"/>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" type="submit" lay-filter="submit" lay-submit="">提交</button>
            <button class="layui-btn" type="reset">重置</button>
        </div>
    </div>
</form>
<script type="text/javascript">
    layui.use(["layer", "form", "table", "upload", "element", "laydate"], function () {


        layui.form.on('submit(submit)', function (data) {
            postNormal(location.href, {
                    countryZh: data.field.countryZh,
                    provinceZh: data.field.provinceZh,
                    leaderZh: data.field.leaderZh,
                    cityZh: data.field.cityZh,
                    countryEn: data.field.countryEn,
                    provinceEn: data.field.provinceEn,
                    leaderEn: data.field.leaderEn,
                    cityEn: data.field.cityEn,
                    lat: data.field.lat,
                    lon: data.field.lon,
                    captcha: data.field.captcha
                },
                function (result) {
                    closeAll();
                    if (result.code !== '1') {
                        showMessage(result.msg);
                        return;
                    }
                    showMessage("修改成功~");
                })
            return false;
        });
    });
</script>
{include file="../app/index/view/public.footer.html" /}
